package 结业考试;

public class Circle {
    private int radius = 10;

    public Circle() {
    }

    public Circle(int radius) {
        this.radius = radius;
    }

    public double findArea(){

        return 3.14 * (radius * radius);

    }

    /**
     * 获取
     * @return radius
     */
    public int getRadius() {
        return radius;
    }

    /**
     * 设置
     * @param radius
     */
    public void setRadius(int radius) {
        this.radius = radius;
    }

    public String toString() {
        return "Circle{radius = " + radius + "}";
    }
}

